package model;

import java.sql.Timestamp;

/**
 * VUser entity. @author MyEclipse Persistence Tools
 */

public class VUser implements java.io.Serializable {

	private String userid;
	private String pwd;
	private String nickname;
	private String name;
	private String photourl;
	private String signature;
	private String realname;
	private String mobile;
	private String agend;
	private Double bookbean;
	private Integer novelcount;
	private Integer novelscan;
	private Boolean status;
	private Timestamp createtime;
	private Boolean isdelete;
	private Integer usertype;
	private Integer ticketcont;

	// Constructors

	/** default constructor */
	public VUser() {
	}

	/** minimal constructor */
	public VUser(String userid, String pwd, String nickname, String name,
			Integer usertype) {
		this.userid = userid;
		this.pwd = pwd;
		this.nickname = nickname;
		this.name = name;
		this.usertype = usertype;
	}

	/** full constructor */
	public VUser(String userid, String pwd, String nickname, String name,
			String photourl, String signature, String realname, String mobile,
			String agend, Double bookbean, Integer novelcount,
			Integer novelscan, Boolean status, Timestamp createtime,
			Boolean isdelete, Integer usertype, Integer ticketcont) {
		this.userid = userid;
		this.pwd = pwd;
		this.nickname = nickname;
		this.name = name;
		this.photourl = photourl;
		this.signature = signature;
		this.realname = realname;
		this.mobile = mobile;
		this.agend = agend;
		this.bookbean = bookbean;
		this.novelcount = novelcount;
		this.novelscan = novelscan;
		this.status = status;
		this.createtime = createtime;
		this.isdelete = isdelete;
		this.usertype = usertype;
		this.ticketcont = ticketcont;
	}

	// Property accessors

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhotourl() {
		return this.photourl;
	}

	public void setPhotourl(String photourl) {
		this.photourl = photourl;
	}

	public String getSignature() {
		return this.signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAgend() {
		return this.agend;
	}

	public void setAgend(String agend) {
		this.agend = agend;
	}

	public Double getBookbean() {
		return this.bookbean;
	}

	public void setBookbean(Double bookbean) {
		this.bookbean = bookbean;
	}

	public Integer getNovelcount() {
		return this.novelcount;
	}

	public void setNovelcount(Integer novelcount) {
		this.novelcount = novelcount;
	}

	public Integer getNovelscan() {
		return this.novelscan;
	}

	public void setNovelscan(Integer novelscan) {
		this.novelscan = novelscan;
	}

	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	public Boolean getIsdelete() {
		return this.isdelete;
	}

	public void setIsdelete(Boolean isdelete) {
		this.isdelete = isdelete;
	}

	public Integer getUsertype() {
		return this.usertype;
	}

	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}

	public Integer getTicketcont() {
		return this.ticketcont;
	}

	public void setTicketcont(Integer ticketcont) {
		this.ticketcont = ticketcont;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VUser))
			return false;
		VUser castOther = (VUser) other;

		return ((this.getUserid() == castOther.getUserid()) || (this
				.getUserid() != null && castOther.getUserid() != null && this
				.getUserid().equals(castOther.getUserid())))
				&& ((this.getPwd() == castOther.getPwd()) || (this.getPwd() != null
						&& castOther.getPwd() != null && this.getPwd().equals(
						castOther.getPwd())))
				&& ((this.getNickname() == castOther.getNickname()) || (this
						.getNickname() != null
						&& castOther.getNickname() != null && this
						.getNickname().equals(castOther.getNickname())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())))
				&& ((this.getPhotourl() == castOther.getPhotourl()) || (this
						.getPhotourl() != null
						&& castOther.getPhotourl() != null && this
						.getPhotourl().equals(castOther.getPhotourl())))
				&& ((this.getSignature() == castOther.getSignature()) || (this
						.getSignature() != null
						&& castOther.getSignature() != null && this
						.getSignature().equals(castOther.getSignature())))
				&& ((this.getRealname() == castOther.getRealname()) || (this
						.getRealname() != null
						&& castOther.getRealname() != null && this
						.getRealname().equals(castOther.getRealname())))
				&& ((this.getMobile() == castOther.getMobile()) || (this
						.getMobile() != null && castOther.getMobile() != null && this
						.getMobile().equals(castOther.getMobile())))
				&& ((this.getAgend() == castOther.getAgend()) || (this
						.getAgend() != null && castOther.getAgend() != null && this
						.getAgend().equals(castOther.getAgend())))
				&& ((this.getBookbean() == castOther.getBookbean()) || (this
						.getBookbean() != null
						&& castOther.getBookbean() != null && this
						.getBookbean().equals(castOther.getBookbean())))
				&& ((this.getNovelcount() == castOther.getNovelcount()) || (this
						.getNovelcount() != null
						&& castOther.getNovelcount() != null && this
						.getNovelcount().equals(castOther.getNovelcount())))
				&& ((this.getNovelscan() == castOther.getNovelscan()) || (this
						.getNovelscan() != null
						&& castOther.getNovelscan() != null && this
						.getNovelscan().equals(castOther.getNovelscan())))
				&& ((this.getStatus() == castOther.getStatus()) || (this
						.getStatus() != null && castOther.getStatus() != null && this
						.getStatus().equals(castOther.getStatus())))
				&& ((this.getCreatetime() == castOther.getCreatetime()) || (this
						.getCreatetime() != null
						&& castOther.getCreatetime() != null && this
						.getCreatetime().equals(castOther.getCreatetime())))
				&& ((this.getIsdelete() == castOther.getIsdelete()) || (this
						.getIsdelete() != null
						&& castOther.getIsdelete() != null && this
						.getIsdelete().equals(castOther.getIsdelete())))
				&& ((this.getUsertype() == castOther.getUsertype()) || (this
						.getUsertype() != null
						&& castOther.getUsertype() != null && this
						.getUsertype().equals(castOther.getUsertype())))
				&& ((this.getTicketcont() == castOther.getTicketcont()) || (this
						.getTicketcont() != null
						&& castOther.getTicketcont() != null && this
						.getTicketcont().equals(castOther.getTicketcont())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserid() == null ? 0 : this.getUserid().hashCode());
		result = 37 * result
				+ (getPwd() == null ? 0 : this.getPwd().hashCode());
		result = 37 * result
				+ (getNickname() == null ? 0 : this.getNickname().hashCode());
		result = 37 * result
				+ (getName() == null ? 0 : this.getName().hashCode());
		result = 37 * result
				+ (getPhotourl() == null ? 0 : this.getPhotourl().hashCode());
		result = 37 * result
				+ (getSignature() == null ? 0 : this.getSignature().hashCode());
		result = 37 * result
				+ (getRealname() == null ? 0 : this.getRealname().hashCode());
		result = 37 * result
				+ (getMobile() == null ? 0 : this.getMobile().hashCode());
		result = 37 * result
				+ (getAgend() == null ? 0 : this.getAgend().hashCode());
		result = 37 * result
				+ (getBookbean() == null ? 0 : this.getBookbean().hashCode());
		result = 37
				* result
				+ (getNovelcount() == null ? 0 : this.getNovelcount()
						.hashCode());
		result = 37 * result
				+ (getNovelscan() == null ? 0 : this.getNovelscan().hashCode());
		result = 37 * result
				+ (getStatus() == null ? 0 : this.getStatus().hashCode());
		result = 37
				* result
				+ (getCreatetime() == null ? 0 : this.getCreatetime()
						.hashCode());
		result = 37 * result
				+ (getIsdelete() == null ? 0 : this.getIsdelete().hashCode());
		result = 37 * result
				+ (getUsertype() == null ? 0 : this.getUsertype().hashCode());
		result = 37
				* result
				+ (getTicketcont() == null ? 0 : this.getTicketcont()
						.hashCode());
		return result;
	}


}